-- GENERATED SPELL FOR [Eye of Culuthas] --


function spell0_20394(pUnit, Event) --@Focused Bursts,n/a--
pUnit:FullCastSpellOnTarget(36414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20394', 12000, 1)
end

function spell1_20394(pUnit, Event) --@Tongue Lash,n/a--
pUnit:FullCastSpellOnTarget(36398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20394', 605, 1)
end

function Sorts_20394(pUnit, Event)
local choix_sorts_20394 = math.random(0, 1)
if choix_sorts_20394 == 0 then
pUnit:RegisterEvent('spell0_20394', 1, 1)
end
if choix_sorts_20394 == 1 then
pUnit:RegisterEvent('spell1_20394', 1, 1)
end
end

function mob20394_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20394', math.random(1500, 3000), 1)
end

function mob20394_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20394_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20394_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20394, 1, 'mob20394_Action')
RegisterUnitEvent(20394, 2, 'mob20394_Leave')
RegisterUnitEvent(20394, 3, 'mob20394_Kill')
RegisterUnitEvent(20394, 4, 'mob20394_Die')
